﻿using ZilLion.Service.Core.ConfigManager.Manager;

namespace ZilLion.Service.Core.MongoDbManager
{
    public class DefaultMongoDbContext : IMongoDbContext
    {

        public DefaultMongoDbContext()
        {
            var config= ZilLionConfigurationManager.GetConfigInstance<MongoDbConfig>();
            ServerConnectString = config.ServerConnectString;
            DatabaseName = config.DatabaseName;
            RootName = config.RootName;
        }

        public string ServerConnectString { get; set; }
        public string DatabaseName { get; set; }

        public string RootName { get; set; }




    }
}